<!DOCTYPE html>
<html>
<head>
<div th:replace="common/common_resource :: common_css"></div>
<title th:text="${application.shop_name} +' | 查看所有审核商品'"></title>
</head>
<body class="hold-transition skin-blue sidebar-mini" >
	<div class="wrapper">
		<div th:replace="common/common_h5 :: loginAndLogout"></div>
		<div th:replace="common/common_h5 :: upload_image"></div>
		<div th:replace="common/common_h5 :: left_menu"></div>
		<div class="content-wrapper">
			<section class="content">
					<div class="row">
					<div class="col-xs-12">
						<div class="box">
							<div class="box-header">
								<div class="row">
									<div class="col-xs-4">
									</div>
									<div class="col-xs-4">
										<h3 class="box-title">商品未审核列表</h3>
									</div>
									<div class="col-xs-4"></div>
								</div>
							</div>
							<div class="box-body table-responsive">
								<table id="example2" class="table table-bordered table-striped ">
									<thead>
										<tr class="bg-green ">
											<th>商品货号</th>
											<th>商品图片</th>
											<th>商品名称</th>
											<th>市场价</th>
											<th>门店价</th>
											<th>商品状态</th>
											<th>商品销量</th>
											<th>商品库存</th>
											<th>商品规格数</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<tr th:class="${goodsStat.index % 2 ==0}? '' : ''" th:each="goods,goodsStat : ${dataBean.goodslist}">
											<td th:text="${goods.goodsNum}"></td>
											<td>
												<div style="float: left; margin: 3px; overflow: hidden;">
													<a th:href="${#httpServletRequest.getContextPath()}+'/goods/getGoodsInfo?goodsId='+${goods.goodsId}+'&menuUuid='+${menuUuid!=null? menuUuid :'240'}">
														<img th:if="${goods.goodsImg!=''}" class="lazy img-md" height="80px" width="80px" th:src="@{${#strings.append(pathfile,goods.goodsImg)}}" />
													</a>
												</div>
											</td>
											<td >
												<a th:href="${#httpServletRequest.getContextPath()}+'/goods/getGoodsInfo?goodsId='+${goods.goodsId}+'&menuUuid='+${menuUuid!=null? menuUuid :'240'}" th:text="${goods.goodsName}"></a>
											</td>
											<td th:text="￥+${goods.goodsMarketprice}"></td>
											<td th:text="￥+${goods.goodsShopprice}"></td>
											<td>
										 		<code th:if="${goods.goodsIssale==0 && goods.goodsCheck==0}">未审核</code>
										 		<code th:if="${goods.goodsIssale==0 && goods.goodsCheck==1}">停售</code>
										 		<code th:if="${goods.goodsIssale==1 && goods.goodsCheck==1}">在售</code>
											</td>
											<td th:text="${goods.goodsSalenum}"></td>
											<td th:text="${goods.goodsStock}"></td>
											<td th:text="${goods.skuCount}"></td>
											<td>
												<div th:if="${goods.goodsIssale==0 && goods.goodsCheck==0}" class="col-xs-3">
														<div class="row">
															<div class="col-xs-1"></div>
															<div class="col-xs-10">
																<form  th:action="${#httpServletRequest.getContextPath()}+'/goods/goodsCheck'"method="post">
																	<input type="hidden" name="goodsId" th:value="${goods.goodsId}"/>
																	<input type="hidden" name="menuUuid" value="240">
																	<button type="submit" class="fa fa-check-square-o btn btn-success">审核</button>
																</form>
															</div>
															<div class="col-xs-1"></div>
														</div>
												</div>
												<div class="row">
													<div class="col-xs-3">
														<div class="col-xs-1"></div>
														<div class="col-xs-10">
															<a href="javascript:void(0);" th:id="${goods.goodsId}"  data-toggle="tooltip"  data-placement="top" data-original-title="删除后将无法恢复"  class="fa fa-trash btn btn-danger example5-3-2" >废除</a>
														</div>
														<div class="col-xs-1"></div>
													</div>
												</div>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</section>
		</div>
		<div th:replace="common/common_h5 :: down_foot"></div>
		<div th:replace="common/common_h5 :: down_sidebar"></div>
		<div th:replace="common/common_h5 :: error_message"></div>
		<div class="control-sidebar-bg"></div>
		<div th:replace="common/common_resource :: common_js"></div>
		<script th:src="@{/admin_js/basics/process/goods_list.js}"></script>
</body>
</html>
